package com.lxy.controller;


import com.github.xiaoymin.knife4j.annotations.ApiSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@Api(tags = "订单管理")
@RestController
@RequestMapping("/api")
public class OrderController {

    @ApiOperation(value = "查询初始化数据")
    @GetMapping("/order")
    public Map query(int id){
        Map map = new HashMap<>();
        map.put("id",id);
        map.put("name","小米手机");
        return map;
    }
}
